package com.heima.controller;

import com.heima.pojo.Task;
import com.heima.service.TaskService;
import io.swagger.annotations.Api;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

@RestController
@Slf4j
@Api(tags = "工单详情接口")
public class TaskDetailsController {

    @Autowired
    private TaskService taskService;

    /**
     * 补货详情
     */
    @GetMapping("/api/task-service/taskDetails/{taskId}")
    public Task getSupplyInfo(@PathVariable Integer taskId){
        log.info("taskId:{}",taskId);
        return taskService.getSupplyInfo(taskId);
    }
}
